#include "FuzeStdafx.h"
#include "stdafx.h"

#include <gtest/gtest.h>
#include "Register/GPR.h"

TEST(GPRTest, ProfileTest)
{
//  int rtn = theProfile().GetPrivateProfile("Listen", "Port", 0);
//  EXPECT_EQ(7788, rtn);
// 
// 	string rtnStr = theProfile().GetPrivateProfile("Test", "test", "");
// 	char cprStr[1024] = "";
// 	strcpy_s(cprStr, rtnStr.c_str()); 
// 	EXPECT_STREQ("Oyes", cprStr);
// 
// 	rtn = theProfile().GetPrivateProfile("Just", "just", 0);
// 	EXPECT_NE(0, rtn);
// 
// 	theProfile().WritePrivateProfile("Just", "just", 42);
// 	rtn = theProfile().GetPrivateProfile("Just", "just", 0);
// 	EXPECT_EQ(42, rtn);
}

TEST(GPRTest, EncryptionTest)
{
	char const* msg = "1234567890";
	char buff[4096] = "";
	Encryption::Encrypt(msg,buff,4096);
	EXPECT_STREQ("1I1J1K1L1M1N1O1P1Q1H",buff);
}
